package cn.siat.gene.mapper;

import cn.siat.gene.domain.Sequence;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SequenceMapper {
    int save(Sequence sequence);
    int saveList(List<Sequence> list);
    List<Sequence> list(Sequence sequence);

    /**
     * 假删除
     * @param list
     * @return
     */
    int removeByIdList(List<Long> list);

    Sequence get(Sequence sequence);

    int update(Sequence sequence);
    int updateValid(Sequence sequence);
    /**
     * 查询除了传进来的sourceFileName的序列
     * @param sequence
     * @return
     */
    List<Sequence> listToDelSequence(Sequence sequence);
}
